home *** CD-ROM | disk | FTP | other *** search
/ Delphi Magazine Collection 2001 / Delphi Magazine Collection 20001 (2001).iso / DISKS / Issue34 / 34com / DeskProp.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  1998-05-12  |  904 b   |  45 lines

  1. unit DeskProp;
  2.  
  3. interface
  4.  
  5. uses SysUtils, Windows, Messages, Classes, Graphics, Controls, StdCtrls,
  6.   ExtCtrls, Forms, ComServ, ComObj, StdVcl, AxCtrls, GIFImage;
  7.  
  8. type
  9.   TDesktopProp = class(TPropertyPage)
  10.     GIFImage1: TGIFImage;
  11.     Label1: TLabel;
  12.     Label2: TLabel;
  13.   private
  14.     { Private declarations }
  15.   protected
  16.     procedure UpdatePropertyPage; override;
  17.     procedure UpdateObject; override;
  18.   public
  19.     { Public declarations }
  20.   end;
  21.  
  22. const
  23.   Class_DesktopProp: TGUID = '{C5B5EEE1-E9A7-11D1-8CDD-8D1116120B0F}';
  24.  
  25. implementation
  26.  
  27. {$R *.DFM}
  28.  
  29. procedure TDesktopProp.UpdatePropertyPage;
  30. begin
  31.   { Update your controls from OleObject }
  32. end;
  33.  
  34. procedure TDesktopProp.UpdateObject;
  35. begin
  36.   { Update OleObject from your controls }
  37. end;
  38.  
  39. initialization
  40.   TActiveXPropertyPageFactory.Create(
  41.     ComServer,
  42.     TDesktopProp,
  43.     Class_DesktopProp);
  44. end.
  45.